#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class PermissionsList : Business.BusinessBase<PermissionsList, int>
	{
		#region Fields and Properties

		private String permissionName = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String PermissionName
		{
			get { return permissionName; }
			set
			{
				if (value != permissionName)
				{
					MarkChanged("PermissionName");
					permissionName = value;
				}
			}
		}

		private int pModuleKey = 0;
		/// <summary>
		/// 
		/// </summary>
		public int PModuleKey
		{
			get { return pModuleKey; }
			set
			{
				if (value != pModuleKey)
				{
					MarkChanged("PModuleKey");
					pModuleKey = value;
				}
			}
		}

		private int actionKey = 0;
		/// <summary>
		/// 
		/// </summary>
		public int ActionKey
		{
			get { return actionKey; }
			set
			{
				if (value != actionKey)
				{
					MarkChanged("ActionKey");
					actionKey = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public PermissionsList()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override PermissionsList DataSelect(int id)
		{
			return Services.DALService.PermissionsListService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.PermissionsListService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.PermissionsListService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.PermissionsListService.Delete(this);
		}

		#endregion Base overrides
	}
}
